import request from '@/utils/request'

// 创建用户简历
export function createStudentCurriculumVitae(data) {
  return request({
    url: '/member/student-curriculum-vitae/create',
    method: 'post',
    data: data
  })
}

// 更新用户简历
export function updateStudentCurriculumVitae(data) {
  return request({
    url: '/member/student-curriculum-vitae/update',
    method: 'put',
    data: data
  })
}

// 删除用户简历
export function deleteStudentCurriculumVitae(id) {
  return request({
    url: '/member/student-curriculum-vitae/delete?id=' + id,
    method: 'delete'
  })
}

// 获得用户简历
export function getStudentCurriculumVitae(id) {
  return request({
    url: '/member/student-curriculum-vitae/get?id=' + id,
    method: 'get'
  })
}

// 获得用户简历分页
export function getStudentCurriculumVitaePage(query) {
  return request({
    url: '/member/student-curriculum-vitae/page',
    method: 'post',
    data: query
  })
}

// 导出用户简历 Excel
export function exportStudentCurriculumVitaeExcel(query) {
  return request({
    url: '/member/student-curriculum-vitae/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
